package com.rtx.edi.platform.field.service;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rtx.edi.model.field.po.PlFieldMapping;

public interface PlFieldMappingService extends IService<PlFieldMapping>{

	/**
	 * 通过code获取配置
	 */
	public List<PlFieldMapping> queryByCode(String datasourcekey,String code);
	
	/**
	 * 通过code获取配置
	 */
	public List<PlFieldMapping> queryByCondition(String datasourcekey,LambdaQueryWrapper<PlFieldMapping> qw);
	
	/**
	 * wms单据类型大类匹配
	 * type 上游系统类型
	 * code wms-type-mapping
	 * udf1 为wms 单据类型大类 SO 为入库单 ASN为出库单
	 * @param type
	 * @return
	 */
	String queryWmsDataType(String datasourcekey,String type);
	
	/**
	 * 新增
	 * @param datasourcekey
	 * @param type
	 * @return
	 */
	void insertFieldMapping(String datasourcekey,PlFieldMapping po);
	
	/**
	 * 
	 * @param pageParam
	 * @param dto
	 */
	void selectPageList(Page<PlFieldMapping> pageParam,PlFieldMapping dto);
}
